/**
 * 数值工具
 * @type {function(): (NumberUtils.init|init)}
 */
var NumberUtils = (function () {
    var NumberUtils = function () {
        return new NumberUtils.fn.init();
    }

    NumberUtils.fn = NumberUtils.prototype = {
        constructor: NumberUtils,
        init: function () {

        },

        /**
         * 是否为数值
         * @param s
         * @returns {boolean}
         */
        isNumber: function (s) {
            if(/^[0-9]+.?[0-9]*$/.test(s)) {
                return true;
            }
            return false;
        }
    }

    NumberUtils.fn.init.prototype = NumberUtils.fn;

    return NumberUtils;
})();

var NumberUtils = new NumberUtils();
